package cn.service.Impl;

import cn.dao.ApproveInfoDao;
import cn.domain.Application;
import cn.domain.ApproveInfo;
import cn.service.ApproveInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by huangjiaxiang on 2017/5/5.
 */
@Service
@Transactional
public class ApproveInfoServiceImpl implements ApproveInfoService {
    @Resource
    private ApproveInfoDao approveInfoDao;

    @Override
    public List<ApproveInfo> findApproveInfoList(Application applicationId) {
        return approveInfoDao.findApproveInfoListByApplicationId(applicationId);
    }

    @Override
    public void save(ApproveInfo approveInfo) {
       approveInfoDao.save(approveInfo);
    }
}
